package com.springcloud.demo.dynamicTable.dynamic.service.serviceImpl;

import com.springcloud.demo.dynamicTable.dynamic.dao.DynamicDao;
import com.springcloud.demo.dynamicTable.dynamic.entity.TableInfoEntity;
import com.springcloud.demo.dynamicTable.dynamic.service.DynamicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author zhouyang
 * @Description
 * @date 2018/08/13
 */
@Service
public class DynamicServiceImpl implements DynamicService {

    @Autowired
    DynamicDao dynamicDao;

    @Override
    public void save(TableInfoEntity tableInfoEntity, Map<String, Object> values) {
        int save = dynamicDao.save(tableInfoEntity, values);
    }

    @Override
    public void update(TableInfoEntity tableInfoEntity, Map<String, Object> values, Map<String, Object> params) {
        int update = dynamicDao.update(tableInfoEntity, values, params);
    }
}
